home *** CD-ROM | disk | FTP | other *** search
- property Tlacitko
-
- on beginSprite me
- set the visible of sprite the spriteNum of me to 1
- set the visible of sprite (the spriteNum of me + 1) to 0
- end
-
- on endSprite me
- end
-
- on mouseEnter me
- puppetSound(1, "Najezd")
- set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
- set the visible of sprite (the spriteNum of me + 1) to 1
- set Tlacitko to the castNum of sprite (the spriteNum of me + 1)
- end
-
- on mouseLeave me
- set the visible of sprite (the spriteNum of me + 1) to 0
- set the cursor of sprite the spriteNum of me to -1
- if Tlacitko > 0 then
- set the member of sprite (the spriteNum of me + 1) to member Tlacitko
- end if
- end
-
- on mouseDown me
- puppetSound(1, "Klik")
- if Tlacitko > 0 then
- set the member of sprite (the spriteNum of me + 1) to member (Tlacitko + 1)
- end if
- end
-
- on mouseUp me
- global Historie, Zapnuty_zvuk
- if Tlacitko > 0 then
- set the member of sprite (the spriteNum of me + 1) to member Tlacitko
- end if
- if Zapnuty_zvuk then
- puppetSound(3, "Hudba")
- end if
- play movie Historie
- end
-